package com.xcc.netty.socket;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author frosty
 * @description
 * @date 2020-01-08 08:14:56
 */


public class StringUt {
    public static void main(String[] args) throws  Exception{
        String str="adccccde";

StringBuilder 是;
StringBuffer stringBuffer;
        String regx="^.*(.)\\1{2,}.*$";
        Pattern p = Pattern.compile(regx);
        Matcher m=null;

        m=p.matcher(str);
        if(m.matches()){
            System.out.println("reue");
        }


    }
}
